package com.ztgf.commodity.models.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.ztgf.commodity.models.bo.CommodityApplyAgentBO;
import com.ztgf.commodity.models.bo.CommodityApplyAgentSaveBO;
import com.ztgf.commodity.models.dto.CommodityApplyAgentDTO;
import com.ztgf.commodity.models.dto.CommodityApplyAgentLogDTO;
import com.ztgf.commodity.models.vo.CommodityApplyAgentLogVO;
import com.ztgf.commodity.models.vo.CommodityApplyAgentVO;
import com.ztgf.commodity.models.vo.CommoditySysUserVO;

import java.util.List;

/**
 * 商品代理申请表服务
 *
 * @author chenyu.wang
 * @Date 2020-06-23 17:07:09
 */
public interface ICommodityApplyAgentService extends IService<CommodityApplyAgentDTO> {

    /**
     * description: 添加申请代理
     * param: [saveBO]
     * author: chenyu.wang
     * date: 2020-06-23
     * return: boolean
     */
    boolean add(CommodityApplyAgentSaveBO saveBO);

    Page<CommodityApplyAgentVO> queryPageList(CommodityApplyAgentBO bo);

    boolean updateManagerUser(Long id, Long managerUserId);

    boolean updateState(Long id, Integer state, String content,Long managerUserId);

    List<CommodityApplyAgentLogVO> queryLog(Long id);

    List<CommoditySysUserVO> queryManagerUser();
}
